class DichroisModel {
  final String code;
  final String msg;
  final DichroisData data;

  DichroisModel({this.code, this.msg, this.data});

  factory DichroisModel.fromJson(Map<String, dynamic> json) {
    return DichroisModel(
        code: json['code'],
        msg: json['msg'],
        data: DichroisData.fromJson(json['data']));
  }
}

class DichroisData {
  final String openCode;
  final String code;
  final String expect;
  final String time;
  final String name;

  DichroisData({this.openCode, this.code, this.expect, this.time, this.name});

  factory DichroisData.fromJson(Map<String, dynamic> json) {
    return DichroisData(
        openCode: json['openCode'],
        code: json['openCode'],
        expect: json['expect'],
        time: json['time'],
        name: json['name']);
  }
}
